
  

import {userLoginStore} from "@/stores/index"

export default function(){
  
  
  let State=userLoginStore();
  const changeTheme = (theme: string) => {

    switch (theme) {
      case 'default':
        document.documentElement.setAttribute("data-theme",'dark');
        // document.documentElement.className = 'dark'
        break
      case 'red':
        document.documentElement.setAttribute("data-theme",'light');
        // document.documentElement.className = 'light'
        break
    }
  }

  let handleSubmit=()=>{
    State.LOGIN();
  }
  return{
    State,
    handleSubmit,
    changeTheme
  }
}